package com.xin.springcloudquartz;

import com.xin.springcloudquartz.bean.MyBean;
import com.xin.springcloudquartz.config.ProjectUrlConfig;
import com.xin.springcloudquartz.service.EventService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.web.client.RestTemplate;

@SpringBootApplication
@EnableEurekaClient
public class SpringcloudQuartzApplication {

	public static void main(String[] args) {
		ConfigurableApplicationContext run = SpringApplication.run(SpringcloudQuartzApplication.class, args);
		EventService eventService = run.getBean(EventService.class);
//		RestTemplate restTemplate = run.getBean(RestTemplate.class);
		MyBean.eventService=eventService;
	}
}
